package com.shopReduce.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shopReduce.bean.ReduceProgramme;

import shopBean.common.Enum.StatusAll;
import shopBean.common.bean.RestResult;

public interface IReduceProgrammeService {
	public List<ReduceProgramme> list(ReduceProgramme search);
	public RestResult insert(ReduceProgramme reduceProgramme);
	public RestResult<ReduceProgramme> getByName(String name);
	public long listCount(ReduceProgramme search);
	public RestResult updateStatus(String id,StatusAll status); 
	public ReduceProgramme get(String id);
	
	public RestResult<List<ReduceProgramme>> getByShopIdAndStatus(String shopId,StatusAll status);
	
	public RestResult<ReduceProgramme> getFirstByShopIdAndStatus(String shopId,StatusAll status);
}
